package java19_1_8.interface_test.capacity;

/**
 * @author yuisama
 * @date 2022/01/08 12:04
 **/
public class Frog extends Animal implements IRun,ISwim{
    public Frog(String name) {
        super(name);
    }
    @Override
    public void eat(String food) {
        System.out.println(this.name + "正在吃" +food);
    }

    @Override
    public void run() {
        System.out.println(this.name + "正在河边跳");
    }

    @Override
    public void swim() {
        System.out.println(this.name + "正在蛙泳");
    }
}